--
-- Author:      feilong
-- DateTime:    2019-10-23 17:19:33
-- Description: 节点起动入口
-- nodeserver 负责节点间消息转发,管理注册到此的节点


local skynet = require "skynet"


skynet.start(function()
	
	print("___________main__1_")

	-- local redis = skynet.newservice("redis_service")
	-- skynet.call(redis, "lua", "start")

	-- local res = skynet.call(redis, "lua", "redis_cmd", "hmget", "user:user_name:aa", "nickname", "user_type")

	-- print("___________main__2_", res)

	-- local res = skynet.call(redis, "lua", "redis_cmd",  "select", "1")
	-- local res = skynet.call(redis, "lua", "redis_cmd",  "set", "name", "world")


	local manager = skynet.uniqueservice("manager_service")
	skynet.call(manager, "lua", "start")


	skynet.exit()
end)

